package com.diaosidadui.test02;

public class Test04 {
    public static void main(String[] args) {
        String st = "abcef123ABCD";
        int countBig = 0;
        int countLittle = 0;
        int countNum= 0;
        char[] ch = st.toCharArray();
        System.out.println(ch.length);
        for (int i = 0; i < ch.length; i++) {
            char c = ch[i];
            System.out.println(ch[i]);
            if (c >= '0' && c <= '9') {
                countNum++;
            }
            if (c >= 'a' && c <= 'z') {
                countLittle++;
            }
            if (c >= 'A' && c <= 'Z') {
                countBig++;
            }
        }
        System.out.println(countNum);
        System.out.println(countLittle);
        System.out.println(countBig);
    }
}
